package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作者管理对象 author
 * 
 * @author 许雅萍
 * @date 2024-11-15
 */
public class Author extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作者编号 */
    private Long authorId;

    /** 作者姓名 */
    @Excel(name = "作者姓名")
    private String name;

    /** 作者简介 */
    @Excel(name = "作者简介")
    private String bio;

    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setBio(String bio) 
    {
        this.bio = bio;
    }

    public String getBio() 
    {
        return bio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("authorId", getAuthorId())
            .append("name", getName())
            .append("bio", getBio())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
